package cn.founder.org.domain;

import cn.founder.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class Shop extends BaseDomain{
    //id继承父类
    private String name;
    private String tel;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date registerTime = new Date();
    // 0待提交  1 待审核 2通过 3驳回 -1 拒绝
    private Integer state = 0;//设置了一个初始值 表示信息待审核
    private String address;
    private String logo;

    private Employee admin;//admin是前端注册表单里面的店长  employee里面的admin id是通过属性传递值
}
